/**
* cSans Align pluging v0.3.3
* 2009 Copyright A navalla suíza http://anavallasuiza.com
* cSans is released under the GNU Affero GPL version 3 - more information at http://www.fsf.org/licensing/licenses/agpl-3.0.html
*/

/* 1. BASIC STYLES */

.align {
	height: 100%;
	display: table;
	}
body.align {
	width: 100%;
	text-align: left;
	}
.align .content {
	float: none;
	display: block;
	text-align: left;
	}

/* 2. ALIGN MODES */

/* 2.1. Center vertically */
.top-right, .top-center, .top-left {
	width: 100%;
	display: table-cell;
	}
.middle-right, .middle-center, .middle-left,
.bottom-right, .bottom-center, .bottom-left {
	display: table-cell;
	width: 100%;
	}
.middle-right, .middle-center, .middle-left { vertical-align: middle; }
.bottom-right, .bottom-center, .bottom-left { vertical-align: bottom; }


/* 2.2. Center horizontally */
.top-left, .middle-left, .bottom-left { text-align: left; }
.top-center, .middle-center, .bottom-center { text-align: center; }
.top-right, .middle-right, .bottom-right { text-align: right; }


/* 2.3. Content of aligned element */
.top-right .content, .middle-right .content, .bottom-right .content { margin: 0 0 0 auto; }
.top-center .content, .middle-center .content, .bottom-center .content { margin: 0 auto; }
.top-left .content, .middle-left .content, .bottom-left .content { margin: 0 auto 0 0; }

/* 3. IE6 & IE7 HACKS */

.align { *position: relative; }
.top-right, .top-center, .top-left { *position: absolute; }
.middle-right, .middle-center, .middle-left {
	*position: absolute;
	*top: 50%;
	}
.middle-right .content, .middle-center .content, .middle-left .content {
	*position: relative;
	*top: -50%;
	}
.bottom-right, .bottom-center, .bottom-left {
	*position: absolute;
	*top: 100%;
	}
.bottom-right .content, .bottom-center .content, .bottom-left .content {
	*position: relative;
	*top: -100%;
	}